package com.etc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etc.pojo.Emp;
import com.etc.service.IHelloService;
/*
 * 1
 */
@Controller
public class HelloController {

    @Autowired
    IHelloService service;
    
    @RequestMapping("hello.action")
    @ResponseBody
    public Emp hello(Integer id) {
        
        return service.findById(id);
    }
}
